package com.lanju.service;


import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.lanju.entity.User;
import com.lanju.model.ResultModel;

public interface UserService {
	
	ResultModel add(User user);
	
	ResultModel addByOpenid(User user);
	
	ResultModel del(User user);
	
	ResultModel edit(User user);
	
	User getById(String id);
	
	User getByPhone(Map<String, Object> param);
	
	User getByOpenId(Map<String, Object> param);
	
	User getByPhoneAndPassword(Map<String, Object> param);
	
	Map<String, Object> getList(User user,int pageSize, int offset);

	ResultModel regist(Map<String, Object> param,HttpServletRequest request);

	ResultModel findPassword(Map<String, Object> param);

	ResultModel getMyGuanJia(Map<String, Object> param);
	
	List<User> getSendMessageUser(Map<String, Object> param);
	
	Map<String,Object> updateUserInfo(Map<String,Object> map,HttpSession session);
}
